import {request} from "../utils/axios";
var source = 2
// 获取系统基础资料
export function baseInfo (params) {
    params.source = source
    return request({
        url: '/GetBaseData',
        method: 'post',
        data: params
    })
}
// 增加基础资料
export function addBaseInfo (params) {
    params.source = source
    return request({
        url: '/addbaseData',
        method: 'post',
        data: params
    })
}
// 更新基础资料
export function updateBaseInfo (params) {
    params.source = source
    return request({
        url: '/RenewBaseData',
        method: 'post',
        data: params
    })
}
// 获取首页轮播图
export function swiperData (params) {
    params.source = source
    return request({
        url: '/GetBannerImg',
        method: 'post',
        data: params
    })
}
// 增加产品信息类别
export function addClassify (params) {
    params.source = source
    return request({
        url: '/AddProductMData',
        method: 'post',
        data: params
    })
}
//增加产品子项信息
export function addChildInfo (params) {
    params.source = source
    return request({
        url: '/AddProductCData',
        method: 'post',
        data: params
    })
}
//删除产品信息类别
export function delClassify (params) {
    params.source = source
    return request({
        url: '/RenewProductMData',
        method: 'post',
        data: params
    })
}
//删除产品子项信息
export function delChildInfo (params) {
    params.source = source
    return request({
        url: '/RenewProductCData',
        method: 'post',
        data: params
    })
}
//删除基础资料
export function delBaseInfo (params) {
    params.source = source
    return request({
        url: '/RemoveBaseData',
        method: 'post',
        data: params
    })
}
//获取系统功能信息
export function functionInfo (params) {
    params.source = source
    return request({
        url: '/GetSysFunction',
        method: 'post',
        data: params
    })
}
//更新首页轮播图
export function updateSwiper (params) {
    params.source = source
    return request({
        url: '/RenewBannerImg',
        method: 'post',
        data: params
    })
}